/*package com.gym.chatroom;

import java.io.BufferedReader;
import java.io.IOException;

import javax.swing.JTextArea;

*//**
 * 客户端用来接收服务器消息的线程  --- 使用内部类代替了
 * @author admin
 *
 *//*
@SuppressWarnings("all")
public class MesThread extends Thread {
	private BufferedReader reader;
	private JTextArea textArea;
	
	public BufferedReader getReader() {
		return reader;
	}
	public void setReader(BufferedReader reader) {
		this.reader = reader;
	}
	public JTextArea getTextArea() {
		return textArea;
	}
	public void setTextArea(JTextArea textArea) {
		this.textArea = textArea;
	}
	public MesThread(BufferedReader reader,JTextArea textArea) {
		this.reader = reader;
		this.textArea = textArea;
	}
	@Override
	public void run() {
		String meg = null;
		String[] mes = null;
		while (true) {
			try {
				meg = reader.readLine();
				mes = meg.split("#");
				if(mes[0].equals("ADD")){//用户上线
					
				}else if(mes[0].equals("DEL")){//用户下线
					
				}else if(mes[0].equals("LIST")){//用户列表
					
				}else{
					textArea.append(meg+"\r\n");
				}
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
*/